/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controllers.process;

import models.PaperDAO;
import controllers.entity.Paper;
import java.util.List;
/**
 *
 * @author LinhNT
 */
public class PaperProcess {
    
    private static PaperDAO paperDAO = new PaperDAO();
    
    public List<Paper> getAllPaper(int macanbo) { 
        return paperDAO.getAllPaperByMaCanBo(macanbo);
    }
    
    public static boolean insertPaper(Paper X){
        return paperDAO.InsertPaper(X);
    }
    
    public static boolean updatePaper(Paper X){
        return paperDAO.UpdatePaper(X);
    }
    
    public static boolean deletePaperByMaPaper(String MaPaper){
        return paperDAO.DeletePaperByMaPaper(MaPaper);
    }
    public static int getCountPaper(){
        return paperDAO.getCountPaper();
    }
    public static boolean deletePaperByMaCanBo(int MaCanBo){
        return paperDAO.DeletePaperByMaCanBo(MaCanBo);
    }
}
